﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>设置插槽的默认内容</title>
</head>
<body>

    <div id="app">
        <page>六年阿斯蒂芬去微软</page>
    </div>

<!--引入vue文件-->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script>
    const vm = Vue.createApp({ });
    vm.component('page', {
        template: `<button>
            <slot>Submit</slot>       
            </button>`
    });
    vm.mount('#app');
</script>
</body>
</html>
